]<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<% 
    String context = request.getContextPath();
    request.setAttribute("context",context);
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户</title>
    <link href="${context}/static/jquery-easyui-1.3.2/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="${context}/static/jquery-easyui-1.3.2/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="${context}/static/jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="${context}/static/scripts/json2.js" type="text/javascript"></script>
    <script src="${context}/static/scripts/common.js" type="text/javascript"></script>
    <link href="${context}/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <script src="${context}/static/bootstrap/js/bootstrap.js" type="text/javascript"></script>   
<head>
<style type="text/css">
	div.container
	{
	width:960px;
	margin:0px;
	line-height:150%;
	margin-left: auto;
	margin-right: auto;
	}
	div.header,div.footer
	{
	padding:0.5em;
	clear:left;
	background-color:#99CCFF
	}
	h1.header
	{
	padding:0;
	margin:0;
	}
	div.right
	{
	float:right;
	width:130px;
	margin:0;
	padding:1em;
	background-color:#CCFFFF;
	}
	div.content
	{
	margin-right:180px;
	padding:1em;
	}
	
	
*
{
	margin:0;
	padding:0;
	font-family:Verdana,Arial,Helvetica,sans-serif;
	font-size:14px;
	line-height:1.5em
}
body {
	color:#494949
}
h1 {
	font-size:16px;
	font-weight:bold;
	margin:3px
}
img {
	border:none
}	
	
#news_body {
	margin-left:10px;
	margin-right:10px;
	line-height:180%;
	overflow:hidden;
	color:#404040
}
#news_body .indent {
	margin-left:0
}
#news_body span {
	line-height:180%;
	color:#404040
}
#news_body dl {
	line-height:180%
}
#news_body dl dt {
	line-height:180%
}
#news_body dl dd {
	line-height:180%
}
#news_body p {
	margin-top:10px;
	margin-bottom:10px;
	line-height:180%;
	color:#404040
}
#news_body table {
	margin:0 auto;
	border:1px solid silver;
	border-collapse:collapse
}
#news_body th,#news_body td {
	border:1px solid silver;
	border-collapse:collapse;
	padding:3px
}
#news_body td p {
	margin-top:0;
	margin-bottom:0
}
#news_body li {
	line-height:180%
}
#news_body h3 {
	margin-top:10px;
	margin-bottom:10px;
	line-height:180%
}
#news_body br {
	line-height:10px
}
#news_body a:link,#news_body a:visited,#news_body a:active {
	color:#005fa9;
	text-decoration:none
}
#news_body a:hover {
	text-decoration:underline
}
#news_body a b {
	color:#005fa9
}
#news_body a strong {
	color:#005fa9
}
#news_body strong {
	color:#404040
}
#news_body ul {
	list-style-type:auto;
	margin:0 2px 0 45px
}
#news_body .noindent {
	margin-left:0;
	padding-left:20px
}
#news_body ul li {
	line-height:180%
}
#news_body ol {
	list-style-type:decimal;
	margin:5px 2px 5px 50px
}
#news_body div {
	line-height:180%
}
#news_body blockquote {
	line-height:180%;
	background:none;
	border:2px solid #efefef;
	color:#555;
	margin-left:25px;
	padding-left:10px;
	padding-right:10px;
	padding-top:5px;
	padding-bottom:5px;
	margin-top:10px;
	margin-bottom:10px
}
#news_body blockquote p {
	color:#555
}
#news_body h1 {
	margin:5px auto 5px auto;
	padding:0;
	font-size:14px
}
#news_body h2 {
	margin:5px auto 5px auto;
	padding:0;
	font-size:14px
}
#news_body h3 {
	margin:5px auto 5px auto;
	padding:0;
	font-size:14px
}
#news_body h4 {
	margin:5px auto 5px auto;
	padding:0;
	font-size:14px
}	
	
</style>
    
    <script type="text/javascript">
    
 	    function addFavorite() {
 	    	var obj={"sourceid":"${item.id}","userid":"duankaige","sourcetitle":"${item.title}"};
 	    	var parmeter=getParmeterOfObj(obj);
		    $.ajax({
		        url: "${context}/wread/addFavorite.html",
		        data: parmeter,
		        dataType: "json",
		        type: "POST",
		        async: false,
		        success: function (result) {
		        	location.reload();
		        }
		    });		    	
 	    }   
 	    
 	    
 	    function cancelFavorite() {
 	    	var obj={"sourceid":"${item.id}","userid":"duankaige","sourcetitle":"${item.title}"};
 	    	var parmeter=getParmeterOfObj(obj);
		    $.ajax({
		        url: "${context}/wread/cancelFavorite.html",
		        data: parmeter,
		        dataType: "json",
		        type: "POST",
		        async: false,
		        success: function (result) {
		        	location.reload();
		        }
		    });		    	
 	    }     
 
    </script>
</head>
<div class="container">

	<div class="header">
		<!-- Save for Web Slices (未标题-5) -->
		<img src="${context}/static/images/top.gif" width="951" height="100" alt="">
		<!-- End Save for Web Slices -->	
	</div>
	
	<div class="right">
		</br></br></br></br></br></br></br></br></br></br></br>
		</br></br></br></br></br></br></br></br></br></br></br>
		</br></br></br></br></br></br></br></br></br></br></br>
	</div>
	
 	<div class="content">
 		${item.title}
 	    <a href="${item.contentURL}" target='_blank'>原文地址${favoriteFlag}</a>
		<c:if test="${favoriteFlag}">
 	   	   <a href="#" onclick="cancelFavorite();return false;"><i class="icon-star"></i></a>
		</c:if> 
		<c:if test="${!favoriteFlag}">
 	    	<a href="#" onclick="addFavorite();return false;"><i class="icon-star-empty"></i></a>
		</c:if> 		
		<div id="news_body">
			${item.content}
		</div>
    </div>
	
	<div class="footer"><h1 class="header">footer</h1><h1 class="header">&nbsp;</h1><h1 class="header">&nbsp;</h1></div>
	
</div>

</body>
</html>
